package com.groupbuying.customerconsumer.dao;

import com.groupbuying.customerconsumer.domain.CustomerUshopDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 够样优店用户表
 * @author zmlmagic
 * @email zmlmagic@163.com
 * @date 2019-05-14 03:22:33
 * @des
 */

@Mapper
@Repository
public interface CustomerUshopDao {

	CustomerUshopDO get(String customerId);
	
	List<CustomerUshopDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CustomerUshopDO customerUshop);
	
	int update(CustomerUshopDO customerUshop);
	
	int remove(String customer_id);
	
	int batchRemove(String[] customerIds);

	/**
	 * 根据用户来源类型查询手机号
	 * @param type
	 * @return
	 */
	Set<String> getMobileByType(String type);
}
